---
layout: m1x_soap
title: Address Delete
---

<h2><a name="customer_address.delete-Module%3AMageCustomer"></a>Module: Mage_Customer</h2>


<h3><a name="customer_address.delete-Resource%3Acustomeraddress"></a>Resource: customer_address</h3>


<h4><a name="customer_address.delete-Method%3A"></a>Method:</h4>

<ul>
	<li>customer_address.delete (SOAP V1)</li>
	<li>customerAddressDelete (SOAP V2)</li>
</ul>


<p>Delete the required customer address.</p>


<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> int </td>
<td> addressId </td>
<td> Address ID </td>
</tr>
</tbody></table>


<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Description </th>
</tr>
<tr>
<td> boolean </td>
<td> True if the customer address is deleted </td>
</tr>
</tbody></table>


<h4><a name="customer_address.delete-Examples"></a>Examples</h4>

<h5><a name="customer_address.delete-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/soap/?wsdl');

// If somestuff requires API authentication,
// then get a session token
$session = $client-&gt;login('apiUser', 'apiKey');

$result = $client-&gt;call($session, 'customer_address.delete', '4');
var_dump ($result);</pre>
		</div>
</div></div>

<h5><a name="customer_address.delete-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;customerAddressDelete($sessionId, '4');
var_dump($result);</pre>
		</div>
</div></div>




<h5><a name="customer_address.delete-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); 

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey')); 
 
$result = $proxy-&gt;customerAddressDelete((object)array('sessionId' =&gt; $sessionId-&gt;result, 'addressId' =&gt; '4'));   
var_dump($result-&gt;result);</pre>
		</div>
</div></div>


